package com.zt.sso.config;

import java.io.IOException;
import java.util.Properties;

import org.springframework.beans.factory.config.PropertyPlaceholderConfigurer;

/**
 * 
* @Title: PropertyConfigurer.java  
* @Description: 属性获取  
* @author zhoutao    
* @date 2018年1月17日 下午5:50:06  
* @version V1.0
 */
public class PropertyConfigurer extends PropertyPlaceholderConfigurer{

	  private static Properties props;

	    public Properties mergeProperties() throws IOException {
	        props = super.mergeProperties();
	        Property.init(props);
	        return props;
	    }

	    public static String getProperty(String key) {
	        return props.getProperty(key);
	    }

	    public String getProperty(String key, String defaultValue) {
	        return props.getProperty(key, defaultValue);

	    }

}
